import java.io.File;
import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //文件删除
        File file = new File("./test.txt");
        //file.delete();
        file.deleteOnExit();//进程退出之后再去删除 ---> 删除临时文件
        //把程序阻塞
        scanner.next();
        System.out.println(file.exists());
    }
}
